<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<#include "/admin/include/head.htm">
<script type="text/javascript">
	var grid;
	$(function(){
		 grid = $("#maingrid").ligerGrid({
            columns: [
			{name: 'id', hide: true, width:0, isAllowHide: false},
			{display: '流水号',name:'paymentNo' ,align: 'center', width: 200},
			{display: '交易编号', name:'tradeNo' ,align: 'center', width: 150},
			{display: '支付方式', name: 'paymentTypeName', align: 'center', width: 80},
			{display: '交易类型', name: 'detailType',i18n:'detailType', align: 'center', width: 90 },
			{display: '生成日期', name: 'createDate', align: 'center', width: 150 },
			{display: '收支金额(元)', name: 'amount', align: 'center', width: 80 },
			{display: '账户余额(元)', name: 'balance', align: 'center', width: 80 },
			{display: '会员名称', name: 'member.name', align: 'center', width: 300},
			{display: '操作员', name: 'operator', align: 'center', width: 150},
			{display: '备注', name: 'remarks', align: 'center', width: 150}					
			],  pageSize:20, url: '${base}/admin/b2c/payment/queryData.jhtml?memberId=${(memberId)!""}',
			checkbox: false, width: '100%', height:'100%', enabledSort: true
        });
        //双击事件(id:为点击操作的id)
      	LG.setGridDoubleClick(grid, 445);
        $("#pageloading").hide();
		LG.loadToolbar(grid);
		
		//绑定搜索按钮
		LG.search(grid);
	});
	
</script>
</head>
<body style="padding:10px; overflow:hidden;">
	<div id="functions">
		<div class="clearfix">
			<div style="float:left;">
				<span id="searchDefault">
					流水号：<input type="text" id="paymentNo" class="formText" name="search_LIKE_paymentNo"/>&nbsp;
				</span>			
				<#if !memberId??>
					<span>
						会员名称:<input id="username" type="text" class="formText" name="search_EQ_member.name"/>&nbsp;
					</span>	
				</#if>		
				<span>
					操作员:<input id="operator" type="text" class="formText" name="search_EQ_operator"/>&nbsp;
				</span>	
				<span>
					类型：<@u.select_map headerKey=" " id="detailType" headerValue="全部" listKey="key" listValue="name" list=detailTypes
						name="search_EQ_detailType"/>
				</span>	
				<span>
					生成日期：<input type="text" id="startDate" name="search_GE_createDate"
                                class="formText WdatePicker {dateFmt:'yyyy-MM-dd'}" />
						 -
						 <input type="text" id="endDate" name="search_LE_createDate"
                                class="formText WdatePicker {dateFmt:'yyyy-MM-dd'}" />
				</span>
                <input type="button" id="search" class="button" value="搜索"/>
				<a href="#" id="search_btn_reset" face="Wingdings 3">清除本次搜索</a>
			</div>
		</div>
	</div>
	<div id="maingrid" style="margin:0; padding:0"></div>
</body>
</html>